package com.fourth.shopping.service;

import com.fourth.entity.User;
import com.fourth.shopping.commons.TableData;
import com.fourth.shopping.dto.UserTableSearch;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {

    List<User> selectAllUser();



    /**
     * 根据属性搜索分页
     * @param tableSearch
     * @param beginIndex
     * @param pageSize
     * @return
     */
    TableData<User> getPageDate(UserTableSearch tableSearch, Integer beginIndex, Integer pageSize);


    /**
     * 获取根据属性搜索的数据数量
     * @param tableSearch
     * @return
     */
    Integer getUserNo(UserTableSearch tableSearch);


    /**
     * 改变用户状态
     * @param userId
     * @return
     */
    Integer changeStatus(String userId,Integer status);

}
